package main;

public class Printer {
	private PrettyPrinter pp;
	private DiscussionGroup dg;

	public Printer(Post p) {
		pp = new CensoredPrinter();
		dg = new DiscussionGroup(p);
	}

	public void run() {
		dg.accept(pp);
	}

	public static void main(String args[]) {
		Post post = new Post("tom", "exo", "easy", 0);
		Printer p = new Printer(post);
		post.reply(new Post("kev", "x", "fuck", 0));
		post.reply(new Post("lola", "t", "tit", 0));
		p.run();
	}
}
